package com.example.lib_core.util

import android.app.Application
import android.os.Handler
import android.os.Looper

object KitUtil {

    private var app: Application? = null

    fun init(app: Application) {
        KitUtil.app = app
    }

    fun getApp(): Application {
        return app ?: throw NullPointerException("KitUtil must preDeploy!")
    }

    val handler = Handler(Looper.getMainLooper())
}